#pragma once

#include "OnDemandServerMediaSubsession.hh"

class IPCameraAACAudioServerMediaSubsession: public OnDemandServerMediaSubsession{
public:
	static IPCameraAACAudioServerMediaSubsession*
		createNew(UsageEnvironment& env, Boolean reuseFirstSource);

protected:
	IPCameraAACAudioServerMediaSubsession(UsageEnvironment& env, Boolean reuseFirstSource);
	// called only by createNew();
	virtual ~IPCameraAACAudioServerMediaSubsession();

private: // redefined virtual functions
	virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
		unsigned& estBitrate);
	virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
		unsigned char rtpPayloadTypeIfDynamic,
		FramedSource* inputSource);

public:
	int		int_stream_id;
	void*	ptr_frame_buffer;
};


